import axios from "./axios";

export function getSinger() {
  return axios({
    url: "/top/artists",
  });
}

export function getArtistList(limit, offset, type, area, initial) {
  return axios({
    url: "/artist/list",
    params: {
      limit,
      offset,
      type,
      area,
      initial,
    },
  });
}

export function getArtistInformation(id) {
  return axios({
    url: "/artist/detail",
    params: {
      id,
    },
  });
}

export function getArtists(id) {
  return axios({
    url: "/artists",
    params: {
      id,
    },
  });
}

export function getArtistAlbum(id, limit, offset) {
  return axios({
    url: "/artist/album",
    params: {
      id,
      limit,
      offset,
    },
  });
}

export function getArtistMV(id, limit, offset) {
  return axios({
    url: "/artist/mv",
    params: {
      id,
      limit,
      offset,
    },
  });
}

export function getArtistDesc(id) {
  return axios({
    url: "/artist/desc",
    params: {
      id,
    },
  });
}

export function getArtistSimi(id) {
  return axios({
    url: "/simi/artist",
    params: {
      id,
    },
  });
}
